<template>
	<view class="main">
		<view class="search">
			<view class="search-wrap">
				<van-icon name="search" color="#289958" size="32rpx" />
				<input placeholder="请输入搜索标题" placeholder-class="placeholder-class"/>
				<view class="search-btn">
					<van-icon name="edit" style="margin-right: 8rpx;" />
					提问
				</view>
			</view>
		</view>
		<view class="list">
			<answer-item v-for="i in 10" :key="i"></answer-item>
		</view>
	</view>
</template>

<script>
	import answerItem from "./components/answerItem/index.vue"
	export default {
		components: {
			answerItem
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f6f6f6;
	}
	.main {
		.placeholder-class {
			color: #81C39D;
		}
		.search {
			padding: 14rpx 14rpx 0;
			&-wrap {
				border: 2rpx solid #81C49D;
				border-radius: 16rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding: 14rpx 20rpx;
				input {
					margin-left: 4rpx;
					margin-right: 10rpx;
					flex: 1;
				}
				.search-btn {
					width: 140rpx;
					height: 54rpx;
					background-color: #289958;
					border-radius: 140rpx;
					color: #fff;
					font-size: 12px;
					display: flex;
					justify-content: center;
					align-items: center;
					
				}
			}
		}
		.list {
			padding: 14rpx;
		}
	}
</style>
